import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class pokeball here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class EnergyBall  extends Mover
{
    /**
     * Act - do whatever the pokeball wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        move(10.0);
        if(getX() < 20 || getX() > getWorld().getWidth() - 20)
        {
            getWorld().removeObject(this);
        }
    }   
    /*public int attatching()
    {
        Stage Stage= (Stage) getWorld();
        ryu ryu=Stage.getryu();
        int v =ryu.getRotation();
        setRotation(v);
        return v;
    }*/
}